<?php
/**
 * @name $config 系统配置文件
 */
define('UPLOAD_PATH', __ROOT__ . '/data/');
$config = require './config.php';
$array = array(
    'appId' => '428223397313625',//facebook的appid
    'secret' => '76fb6ea7ab4d2883ba0bcfc7b5f093ca',//facebook的secret
    'weixin_appid'=>'wx91f4d7e917286247',
    'weixin_secret'=>'d4624c36b6795d1d99dcf0547af5443d',
    'weixin_token'=>'ownonlycn',
    'alidayu_app_key'=>'23298892',
    'alidayu_app_secret'=>'1d10b9be109a2f3dc2dc1f8f4f83603a',
    'APP_PLUGIN_ON' => true,
    'SHOW_PAGE_TRACE'	=>	false,// 是否显示页面trace信息
    'DEFAULT_THEME' => 'default',
    'TMPL_ENGINE_TYPE' => 'php',//模板引擎
    'TMPL_TEMPLATE_SUFFIX' => '.phtml',// 默认模板文件后缀
    'URL_CASE_INSENSITIVE' => true,//URL是否不区分大小写 默认区分大小写
    'DB_FIELDTYPE_CHECK' => true, //是否进行字段类型检查
    'DATA_CACHE_SUBDIR' => true,//哈希子目录动态缓存的方式
    'DATA_PATH_LEVEL' => 2,// 子目录缓存级别
//	'DATA_CACHE_TIME' 		=> 3600,//数据缓存时间
    'URL_MODEL' => 2,       // URL访问模式,可选参数0、1、2、3,代表以下四种模式：
    'URL_HTML_SUFFIX' => '', //伪静态后缀
    'URL_ROUTER_ON' => true,    //开启路由检验
    'URL_ROUTE_RULES' => array(
        'help/id/:id\d' => 'article/help',
        '/^article_type\/(\d+)-(.*)$/' => 'article/articlelist?id=:1',
        'article/list/id/:id\d' => 'article/articlelist',
        'article/id/:id\d' => 'article/info',
        '/^category\/(\d+)-(.*)$/' => 'product/rewrite_category?cids=:1',
        '/^category/i' => 'product/category',
        '/^product\/(\d+)-(.*)$/' => 'product/rewrite_info?id=:1',
        'suits'=> 'modules/suits',
        'dress-shirts' => 'modules/shirts',
        'product/id/:id\d' => 'product/info',
        'search' => 'product/all',
        '/^custom\/(\d+)-(.*)$/' => 'product/rewrite_custom?id=:1',
        '/^collection\/(.*)$/' => 'collection/read?link=:1',
        '/^new\/(\d+)-(.*)$/' => 'product/all?cid=:1',
        'ncr' => 'index/index',
        'product_feed.html' => 'test/product_feed',
        'wedding-suits' => 'groupBuying/wedding_suits',
        '/^schedule\/(\w*)/' => 'measure/schedule?src=:1',
        'schedule' =>'measure/schedule',
		'promote' =>'measure/promote',
        'mondiland'=>'mondiland/index',
		'3d-show-shirts'=>'product/show?type=1994',
        '3d-show-blazers'=>'product/show?type=1995',
        '3d-show-pants'=>'product/show?type=1996',
		'wash-and-wear-shirt'=>'product/rewrite_category?cids=2188',
		'wash-and-wear-shirt'=>'category/2188-wash-and-wear-shirt',
        //'/\/category\/(\d+)-.*/'=>'/category/cids/$1',
        //'/^category\/(\d+)-(.*)$/'=>'',
        //$cat['url'] = url('/category/'.$cat['id'].'-'.($cat['name']));
        //'/^product\/(\d+)-([a-zA-Z-()&,]+)$/' => 'product/info?id=:1',
    ), //路由规则
    'UPLOAD_SIZE' => 3145728, //上传大小
    'DEFAULT_CHARSET' => 'utf-8', // 默认输出编码
    'DEFAULT_LANG' => 'zh-cn',
    'CHECK_IP_CHANGE_LANGUAGE_ON' => true, //开启IP检测
    'CHECK_IP_LANG_AUTO_DETECT' => true,
    'OUTPUT_ENCODE' => false,
    'DB_CACHE_TIME' => 3600,    //SQL语句缓存时间

    /* 日志设置 */
    'LOG_RECORD' => true,   // 默认不记录日志
    'LOG_TYPE' => 3, // 日志记录类型 0 系统 1 邮件 3 文件 4 SAPI 默认为文件方式
    'LOG_DEST' => '', // 日志记录目标
    'LOG_EXTRA' => '', // 日志记录额外信息
    'LOG_LEVEL' => 'EMERG,ALERT,CRIT,ERR,WARN',// 允许记录的日志级别
    'LOG_FILE_SIZE' => 2097152,    // 日志文件大小限制
    'LOG_EXCEPTION_RECORD' => true,    // 是否记录异常信息日志
    'update_vesion' => 20161128,
    'CONF_DOMAIN' => 'http://' . APP_DOMAIN . '/',    //远程配置网址
    'static_url' => 'http://' . APP_DOMAIN . '/',    //静态文件地址
    'pwd_key' => 'win_ownonly.com',           //通用KEY

    'invite_switch' => true,    //好友邀请活动开关
    'coupon_email_switch' => false,    //购买giftcard 送同等面值的优惠码开关（黑色星期五活动）

    'seckill_key' => 'ownonly_2014_10',    //秒杀的KEY
    'christmas_cart_startdata' => '2014-11-21 00:00:00',    //圣诞节活动开始时间
    'christmas_cart_enddata' => '2014-12-30 15:00:00',    //圣诞节活动开始时间
    'christmas_cart_price' => '150',    //圣诞节1元钱换购领结方巾活动
    'christmas_cart_pocketSquare' => array(244, 247, 246, 249, 245, 248),    //圣诞节1元钱换购领结方巾活动
    'christmas_cart_bowTie' => array(250, 253, 252, 255, 251, 254),    //圣诞节1元钱换购领结方巾活动
    'christmas_prob' => 1,    //圣诞节中大奖概率
    'christmas_Lottery_num' => array(
        array('type' => 1, 'num' => 1000000, 'prob' => 1),
        array('type' => 2, 'num' => 50, 'prob' => 10),
        array('type' => 3, 'num' => 30, 'prob' => 20),
        array('type' => 4, 'num' => 20, 'prob' => 30),
        array('type' => 5, 'num' => 5, 'prob' => 50),
        array('type' => 6, 'num' => 1, 'prob' => 100),
    ),  //圣诞节抽奖各奖项数量

    'fortunewheel_starttime' => '2014-11-22 00:00:00',
    'fortunewheel_endtime' => '2014-12-02 15:00:00',
    'fortunewheel_Lottery_num' => array(
        array('prize_type' => 50, 'prob' => 100),
        array('prize_type' => 70, 'prob' => 80),
        array('prize_type' => 90, 'prob' => 45),
        array('prize_type' => 120, 'prob' => 8),
        array('prize_type' => 150, 'prob' => 2),
    ),  //转盘奖各奖项数量

    'HTTPS_URL' => array(
        '/user/validate_email_ajax',
        '/user/login',
        '/user/register',
        '/cart/info',
        '/cart/checkout',
        '/cart/cart_address_edit',
        '/order/order_edit',
        '/measure/add_email_subscriptions'
    ),  //转成https SSL协议
    'staywithus' => array(
        374, 62, 498, 79, 176, 76, 355, 484, 501, 502, 440, 356,//西装类ID：
        106, 469, 127, 119, 470, 471, 466, 310, 158, 492, 463, 458,//衬衫类ID：
        227, 228, 228, 245, 248, 250, 255, 251,//配件类ID：
    ),  //营销活动，老用户50%优惠码
    'staywithus_close_time' => '2015-02-02 12:00:00', //营销活动，老用户50%优惠码 结束时间
    'slk' => array(671, 692, 702, 765),  //营销活动，20%优惠码
    'slk_close_time' => '2015-04-30 23:59:59', //营销活动，20%优惠码

    'm_data' => array(
        '1' => array(1),
        '2' => array(1, 3),
        '14' => array(4),
        '18' => array(1, 2, 3),
        '20' => array(2),
        '21' => array(3),
        '22' => array(5,9,10),
        '232' => array(1, 3), //礼服两件套
        '233' => array(1, 2, 3), //礼服三件套
        '25' => array(6), //礼服三件套
        '26' => array(8),//牛仔裤
        '27'=> array(11),//羊绒衫
    ),
	'size_type' => array(
		array(
			'id' => 1,
			'type_name' => '西装',
		),
		array(
			'id' => 3,
			'type_name' => '裤子',
		),
		array(
			'id' => 2,
			'type_name' => '马甲',
		),
		array(
			'id' => 4,
			'type_name' => '衬衫',
		),
		array(
			'id' => 14,
			'type_name' => '大衣',
		),
		/*
		array(
			'id' => 5,
			'type_name' => '中长款大衣',
		),

		array(
			'id' => 6,
			'type_name' => '九分裤',
		),
		array(
			'id' => 7,
			'type_name' => '短裤',
		),
		array(
			'id' => 8,
			'type_name' => '牛仔裤',
		),
		*/
		array(
			'id' => 11,
			'type_name' => '羊绒衫',
		),
		/*
		array(
			'id' => 9,
			'type_name' => '短款大衣',
		),
		array(
			'id' => 10,
			'type_name' => '长款大衣',
		),
		*/
		array(
			'id' => 12,
			'type_name' => '皮鞋',
		),
		array(
			'id' => 13,
			'type_name' => '风衣',
		),
	),
    'match_qkc' => true,
    'match_qkc_pid' => array(
        147 => 10,
        146 => 10,
        100 => 15,
        324 => 20,
        471 => 30,
        101 => 15,
        157 => 10,
        462 => 30,
    ), //衬衫清库存
    //可显示3D效果的面料
    '3d_show_suppliers' => array(
        'U4002', 'U4003', 'U4004', 'U4005', 'U4006',
        'U4008', 'U4009', 'U4010', 'U4011', 'U4012',
        'U4014', 'U4015', 'U4016', 'U4017', 'U4019',
        'U4020', 'U4021', 'U4022', 'U4023', 'U4024',
        'U4027', 'U4028', 'U4030', 'U4032', 'U4034',
        'U4035', 'U4036', 'U4037', 'U4038', 'U4039',
        'U4040', 'U4041', 'U4043', 'U4044', 'U4045',
        'U4046', 'U4047', 'U4048', 'U4050', 'U4052',
        'U4054', 'U4060', 'U4087', 'U4096',
    ),
    //不显示3D效果的产品id
    '3d_noshow_pid' => array(
        374,391,75,195,384,389,373,
    ),
    //羊绒衫对应尺寸
    'sweater_szie'=>array(
        36=>'S',
        38=>'M',
        40=>'L',
        42=>'XL',
        44=>'XXL',
        46=>'XXXL',

    ),
    //去掉绣字的大衣id
    'clear_xiuzi_id'=>array('1664','1665','1666','1667','1668'),
    //取消绣字的商品类别
    'clear_xiuzi_catid'=>array('2163','2167','2171','2166'),//牛仔裤2166
    'shoe_size_cn_default' => 41,
    //杭州区域
	'city_arr'=>array('0571'=>'杭州','0510'=>'无锡','025'=>'南京'),
    'area'=>array(1=>'上城区',2=>'下城区',3=>'西湖区',4=>'拱墅区',5=>'江干区',6=>'滨江区',7=>'余杭区',8=>'萧山区',9=>'富阳区'),
    'area_arr'=>array(
        '0571'=>array('1'=>'上城区','2'=>'下城区','3'=>'西湖区','4'=>'拱墅区','5'=>'江干区','6'=>'滨江区','7'=>'余杭区','8'=>'萧山区','9'=>'富阳区'),
        '025'=>array('1'=>'玄武区','2'=>'秦淮区','3'=>'鼓楼区','4'=>'建邺区','5'=>'栖霞区','6'=>'雨花台区','7'=>'浦口区','8'=>'江宁区','9'=>'六合区','10'=>'溧水区','11'=>'高淳区'),
        '0510'=>array('1'=>'梁溪区','2'=>'滨湖区','3'=>'锡山区','4'=>'惠山区','5'=>'新吴区')
    ),
    //羊绒衫定制用户胸围的最大值
    'chest_max'=>150,
    'chest_min'=>95,
    //不同品类  对应应该添加的身形数据
    'data_2'=>array('chest','stomach','sleeve','waist','pants_hips','thigh','pants'),//两件套
    'data_18'=>array('chest','stomach','sleeve','waist','pants_hips','thigh','pants'),//三件套
    'data_23'=>array('chest','stomach','sleeve','waist','pants_hips','thigh','pants'),//礼服
    'data_1'=>array('chest','stomach','sleeve','pants_hips'),//单西
    'data_21'=>array('waist','pants_hips','thigh','pants'),//单裤
    'data_14'=>array('neck','chest','stomach','sleeve','pants_hips'),//衬衫
    'data_20'=>array('chest','stomach'),//马甲
    'data_22'=>array('chest','stomach','sleeve','pants_hips'),//大衣
    'data_26'=>array('waist','pants_hips','thigh','pants'),//牛仔裤
    'data_27'=>array('chest','sleeve','shirt'),//羊绒衫
    '3dCollocation'=>array(
        '1'=>array(1,2,18,26),
        '2'=>array(1,2,18,21,26),
        '18'=>array(1,2,18,20,21,26,27),
        '21'=>array(2,18,21,26),
        '20'=>array(18,20,27),
        '26'=>array(2,18,21,26),
        '27'=>array(18,20,27),
        '22'=>array(22),
        '25'=>array(25),
        '14'=>array(14),
    ),
	'3d_product_file_url'=>array("1878"=>"SHIRTS","1879"=>"SUITS","1880"=>"PANTS"),
	'3d_model_id'=>array(30,31,32),
	'3d_product_attribute_file_url'=>
		array(
			"1878"=>array(
						"COLLAR"=>array("CLA","CLC","CLG","CLI","CLK"),
						"CUFFS"=>array("CXA","CXC","CXF","CXH"),
						"CUT"=>array("LONG_LOOSE","SHORT_LOOSE"),
						"PLACKET"=>array("CMA","CMB"),
						"SLEEVE"=>array("LONG","SHORT")
					),
			"1879"=>array(
						"BUTTON"=>array("XMS"),
						"LAPEL"=>array("XC001","XC002","XC003","XC004","XC005"),
						"LINING"=>array("LB0015","LB0030","LB0036"),
						"POCKETS"=>array("XP001","XP002","XP004","XP005"),
						"TOWEL"=>array("XS001"),
						"VERSION"=>array("SUIT"),
					),
			"1880"=>array(
						"PANT PLEATS"=>array("P1","PW"),
						"POCKET"=>array("DWP","SWP"),
						"VERSION"=>array("PANTS"),
						"WAIST CLOSURE"=>array("WCR"),
					)		
			),
    'img_name'=>array(1=>'blazer',21=>'pants',20=>'vest',14=>'shirt',22=>'coat',25=>'shoes',26=>'jeans',27=>'sweater',2=>'2p',18=>'3p'),
);
define('CHARSET', C('DEFAULT_CHARSET'));
return array_merge($array, $config);

?>